import request from '@/utils/request'

// 查询翻译语种列表
export function listLanguage(query) {
  return request({
    url: '/business/Language/list',
    method: 'get',
    params: query
  })
}


// 查询全部翻译语种列表
export function selectListLanguage() {
  return request({
    url: '/business/Language/selectList',
    method: 'get'
  })
}




// 查询翻译语种详细
export function getLanguage(languageId) {
  return request({
    url: '/business/Language/' + languageId,
    method: 'get'
  })
}

// 新增翻译语种
export function addLanguage(data) {
  return request({
    url: '/business/Language',
    method: 'post',
    data: data
  })
}

// 修改翻译语种
export function updateLanguage(data) {
  return request({
    url: '/business/Language',
    method: 'put',
    data: data
  })
}

// 删除翻译语种
export function delLanguage(languageId) {
  return request({
    url: '/business/Language/' + languageId,
    method: 'delete'
  })
}
